home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11579 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: mac007016.shef.ac.uk!user
  2. From: m.b.greenwood@sheffield.ac.uk (Mike Greenwood)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to make it BEEP ?
  5. Date: Mon, 25 Mar 1996 07:45:05 +0000
  6. Organization: University of Sheffield
  7. Message-ID: <m.b.greenwood-2503960745050001@mac007016.shef.ac.uk>
  8. References: <4inmv1$ljj@sunburst.ccs.yorku.ca> <4is9tf$8o3@spanky.pls.ov.com>
  9. NNTP-Posting-Host: mac007016.shef.ac.uk
  10.  
  11. In article <4is9tf$8o3@spanky.pls.ov.com>, glenn@ov.com wrote:
  12.  
  13. > In article ljj@sunburst.ccs.yorku.ca, "Shahed A. Quazi"
  14. <cs942112@ariel.cs.yorku.ca> writes:
  15. > >Hi,
  16. > >
  17. > >I was wondering if anyone would be kind enough to tell me if there is a
  18. > >C function on unix that I can use to make a beep sound. If it's not 
  19. > >there,I would really appreciate if someone could give me the code.
  20. > >
  21. > >Actually, I'm writing a very simple program where I need it to beep if 
  22. > >the user enters the input in wrong format.
  23. > >
  24. > >Thanks.
  25.  
  26. Hi everyone,
  27.  
  28. I'm sure the previous reply to this posting works also, but a simpler one is:-
  29.  
  30.    /* sound the bell */
  31.    printf("\a");
  32.  
  33. where the 'a' means audiable bell. This works great on our Sun
  34. Sparcstations, and I'm pretty sure that it's ANSI.
  35.  
  36. Cheers
  37.  
  38. Mike Greenwood
  39.